package com.blacksheep.mtm.service;

import com.blacksheep.mtm.pojo.common.DataTablesResult;
import com.blacksheep.mtm.pojo.manager.TbHospital;

import java.util.List;

public interface HospitalService {

    DataTablesResult getHospitalList(int draw, int start, int length, int[] state, String search, String minDate, String maxDate, String orderCol, String orderDir);

    /**
     * 新增一条记录
     * @param Hospital
     * @return
     */
    TbHospital insert(TbHospital Hospital);

    /**
     * 删除
     * @param ids
     * @return
     */
    int deletBatch(Integer[] ids);

    TbHospital updateHospital(TbHospital Hospital);

    TbHospital alertState(Integer id,Integer state);

    /**
     * 小程序请求医院列表接口
     * @return
     */
    List<TbHospital> selectListFront();
}
